package com.example.flight.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author hws
 * @email 231884142@qq.com
 * @date 2023-06-12
 */
@Data
@TableName("tb_flight_information")
public class FlightInformationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private String fid;
	/**
	 * 起点
	 */
	private String departure;
	/**
	 * 终点
	 */
	private String destination;
	/**
	 * 起飞时刻
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date departureTime;
	/**
	 * 到达时刻
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date arrivalTime;
	/**
	 * 经济舱票价
	 */
	private BigDecimal economyClassPrice;
	/**
	 * 经济舱座位数
	 */
	private Integer economyClassSeats;
	/**
	 * 经济舱剩余座位数
	 */
	private Integer economyClassAvailable;
	/**
	 * 商务舱票价
	 */
	private BigDecimal businessClassPrice;
	/**
	 * 商务舱座位数
	 */
	private Integer businessClassSeats;
	/**
	 * 商务舱剩余座位数
	 */
	private Integer businessClassAvailable;
	/**
	 * 航班所属航空公司
	 */
	private String airline;
	/**
	 * 航班号
	 */
	private String flightNum;

}
